package com.newlink.building.userinfo.mvp.model

import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.FlsMessageListData
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.model.bean.ResponseTopData
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_FlsMsgContract
import io.reactivex.Observable

/**
 * @Author: Jake
 * @Date: 2023-12-11
 * @Description:
 */
class Module_UserInfo_FlsMsgModel : BaseModel(), Module_UserInfo_FlsMsgContract.Model {


    override fun deleteAllFlsMessageList(
        token: String,
        userId: String
    ): Observable<HttpResult<ResponseTopData>> {
        return Base_RetrofitHelper.service.deleteAllFlsMessageList(token)
    }

    override fun getFlsMessageList(
        token: String,
        userId: String,
        page: Int,
        limit: Int
    ): Observable<HttpResult<FlsMessageListData>> {
        return Base_RetrofitHelper.service.getFlsMessageList(token, page, limit)
    }

}